package ch3;

import java.util.Scanner;

public class Race {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("请输入百米成绩：");
		double c = in.nextDouble();
		if (c <= 10) {
			System.out.println("进入决赛  ");
			System.out.println("请确认性别：");
			String sex = in.next();
			if (sex.equals("男")) {
				System.out.println("进入男子组决赛");
			} else if (sex.equals("女")) {
				System.out.println("进入女子组决赛");
			} else {
				System.out.println("性别有问题");
			}
		} else {
			System.out.println("被淘汰");
		}
	}

}
